package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 采购订单表
 * </p>
 *
 * @author LX
 * @since 2018-09-09
 */
@TableName("erp_clients")
public class ErpClients extends Model<ErpClients> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 审批状态
     */
    @TableField("shenpi")
    private String shenpi;


    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 分支机构
     */
    @TableField("branch_id")
    private Integer branchId;
    @TableField("branch_name")
    private String branchName;
    /**
     * 订单号
     */
    @TableField("sheet_id")
    private String sheetId;
    /**
     * 日期
     */
    @TableField("work_dt")
    private String workDt;
    /**
     * 合计金额
     */
    @TableField("total_money")
    private Double totalMoney;
    /**
     * 付款方式
     */
    @TableField("pay_type")
    private String payType;
    /**
     * 经办人
     */
    @TableField("work_attn")
    private String workAttn;
    /**
     * 入库 0是未入库并且不能入库1未入库可入库2已入库完成
     */
    @TableField("come_lib")
    private Integer comeLib;
    /**
     * 出库 0是未出库
     */
    @TableField("out_lib")
    private Integer outLib;
    /**
     * 发票 0是未开发票b并且不能开发票1未开发票可开发票2已完成
     */
    @TableField("invoiceList")
    private Integer invoiceList;
    /**
     * 付款0是未付款b并且不能付款1是未付款可付款2已付款完成
     */
    @TableField("payList")
    private Integer payList;
    /**
     * 部门经理
     */
    @TableField("group_Manager")
    private String groupManager;
    /**
     * 财务经理
     */
    private String finance;
    /**
     * 总经理
     */
    @TableField("all_Manager")
    private String allManager;
    /**
     * 状态0是未开始1完成
     */
    @TableField("work_state")
    private Integer workState;
/**
     * 发票id
     */
    @TableField("fapiao_id")
    private String fapiaoId;

    public String getShenpi() {
        return shenpi;
    }

    public void setShenpi(String shenpi) {
        this.shenpi = shenpi;
    }

    private transient  String message;

    private  transient String invoice_id;

    private  transient  String invoiceType;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getInvoice_id() {
        return invoice_id;
    }

    public void setInvoice_id(String invoice_id) {
        this.invoice_id = invoice_id;
    }

    public String getFapiaoId() {
        return fapiaoId;
    }

    public void setFapiaoId(String fapiaoId) {
        this.fapiaoId = fapiaoId;
    }

    private transient List<ErpClientsMateriel> materiels;

    public List<ErpClientsMateriel> getMateriels() {
        return materiels;
    }

    public void setMateriels(List<ErpClientsMateriel> materiels) {
        this.materiels = materiels;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Integer getBranchId() {
        return branchId;
    }

    public void setBranchId(Integer branchId) {
        this.branchId = branchId;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getSheetId() {
        return sheetId;
    }

    public void setSheetId(String sheetId) {
        this.sheetId = sheetId;
    }

    public String getWorkDt() {
        return workDt;
    }

    public void setWorkDt(String workDt) {
        this.workDt = workDt;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getWorkAttn() {
        return workAttn;
    }

    public void setWorkAttn(String workAttn) {
        this.workAttn = workAttn;
    }

    public Integer getComeLib() {
        return comeLib;
    }

    public void setComeLib(Integer comeLib) {
        this.comeLib = comeLib;
    }

    public Integer getOutLib() {
        return outLib;
    }

    public void setOutLib(Integer outLib) {
        this.outLib = outLib;
    }

    public Integer getInvoiceList() {
        return invoiceList;
    }

    public void setInvoiceList(Integer invoiceList) {
        this.invoiceList = invoiceList;
    }

    public Integer getPayList() {
        return payList;
    }

    public void setPayList(Integer payList) {
        this.payList = payList;
    }

    public String getGroupManager() {
        return groupManager;
    }

    public void setGroupManager(String groupManager) {
        this.groupManager = groupManager;
    }

    public String getFinance() {
        return finance;
    }

    public void setFinance(String finance) {
        this.finance = finance;
    }

    public String getAllManager() {
        return allManager;
    }

    public void setAllManager(String allManager) {
        this.allManager = allManager;
    }

    public Integer getWorkState() {
        return workState;
    }

    public void setWorkState(Integer workState) {
        this.workState = workState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpClients{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", branchId=" + branchId +
        ", branchName=" + branchName +
        ", sheetId=" + sheetId +
        ", workDt=" + workDt +
        ", totalMoney=" + totalMoney +
        ", payType=" + payType +
        ", workAttn=" + workAttn +
        ", comeLib=" + comeLib +
        ", outLib=" + outLib +
        ", invoiceList=" + invoiceList +
        ", payList=" + payList +
        ", groupManager=" + groupManager +
        ", finance=" + finance +
        ", allManager=" + allManager +
        ", workState=" + workState +
        "}";
    }
}
